package cn.moningxi.service.impl;

import cn.moningxi.bean.SystemUserRole;
import cn.moningxi.mapper.SystemUserRoleMapper;
import cn.moningxi.service.SystemUserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SystemUserRoleServiceImpl implements SystemUserRoleService {

    @Autowired
    SystemUserRoleMapper systemUserRoleMapper;

    @Override
    public void insertUserRole(Integer rId, Integer uId) {
        systemUserRoleMapper.insertUserRole(rId, uId);
    }

    @Override
    public void updateUserRole(Integer rId, Integer uId) {
        systemUserRoleMapper.updateUserRole(rId, uId);
    }

    @Override
    public SystemUserRole queryByUserId(Integer uId) {
        return systemUserRoleMapper.queryByUserId(uId);
    }
}
